Optimal. Leaf size=452 \[ -\frac {2 \left (a^2-b^2\right ) \left (10 A b^3-75 a^3 B-45 a b^2 B-6 a^2 b (19 A+28 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{315 a^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{315 a^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.16, antiderivative size = 452, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 9, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4179, 4189,
4120, 3941, 2734, 2732, 3943, 2742, 2740} \begin {gather*} \frac {2 \sin (c+d x) \left (7 a^2 (7 A+9 C)+90 a b B+15 A b^2\right ) \sqrt {a+b \sec (c+d x)}}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \sin (c+d x) \left (75 a^3 B+a^2 b (163 A+231 C)+135 a b^2 B+5 A b^3\right ) \sqrt {a+b \sec (c+d x)}}{315 a d \sqrt {\sec (c+d x)}}-\frac {2 \left (a^2-b^2\right ) \sqrt {\sec (c+d x)} \left (-75 a^3 B-6 a^2 b (19 A+28 C)-45 a b^2 B+10 A b^3\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{315 a^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (-21 a^4 (7 A+9 C)-435 a^3 b B-3 a^2 b^2 (93 A+161 C)-45 a b^3 B+10 A b^4\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{315 a^2 d \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {2 (9 a B+5 A b) \sin (c+d x) (a+b \sec (c+d x))^{3/2}}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^{5/2}}{9 d \sec ^{\frac {7}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 3941
Rule 3943
Rule 4120
Rule 4179
Rule 4189
Rubi steps
\begin {align*} \int \frac {(a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {9}{2}}(c+d x)} \, dx &=\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}+\frac {2}{9} \int \frac {(a+b \sec (c+d x))^{3/2} \left (\frac {1}{2} (5 A b+9 a B)+\frac {1}{2} (7 a A+9 b B+9 a C) \sec (c+d x)+\frac {1}{2} b (2 A+9 C) \sec ^2(c+d x)\right )}{\sec ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}+\frac {4}{63} \int \frac {\sqrt {a+b \sec (c+d x)} \left (\frac {1}{4} \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right )+\frac {1}{4} \left (88 a A b+45 a^2 B+63 b^2 B+126 a b C\right ) \sec (c+d x)+\frac {3}{4} b (8 A b+6 a B+21 b C) \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}+\frac {8}{315} \int \frac {\frac {3}{8} \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right )+\frac {1}{8} \left (585 a^2 b B+315 b^3 B+21 a^3 (7 A+9 C)+5 a b^2 (121 A+189 C)\right ) \sec (c+d x)+\frac {1}{8} b \left (270 a b B+14 a^2 (7 A+9 C)+15 b^2 (10 A+21 C)\right ) \sec ^2(c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {16 \int \frac {\frac {3}{16} \left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right )-\frac {3}{16} a \left (75 a^3 B+405 a b^2 B+5 b^3 (31 A+63 C)+3 a^2 b (87 A+119 C)\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{945 a}\\ &=\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {\left (\left (a^2-b^2\right ) \left (10 A b^3-75 a^3 B-45 a b^2 B-6 a^2 b (19 A+28 C)\right )\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{315 a^2}-\frac {\left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{315 a^2}\\ &=\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {\left (\left (a^2-b^2\right ) \left (10 A b^3-75 a^3 B-45 a b^2 B-6 a^2 b (19 A+28 C)\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{315 a^2 \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{315 a^2 \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}-\frac {\left (\left (a^2-b^2\right ) \left (10 A b^3-75 a^3 B-45 a b^2 B-6 a^2 b (19 A+28 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{315 a^2 \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{315 a^2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=-\frac {2 \left (a^2-b^2\right ) \left (10 A b^3-75 a^3 B-45 a b^2 B-6 a^2 b (19 A+28 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{315 a^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (10 A b^4-435 a^3 b B-45 a b^3 B-21 a^4 (7 A+9 C)-3 a^2 b^2 (93 A+161 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{315 a^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 \left (15 A b^2+90 a b B+7 a^2 (7 A+9 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (5 A b^3+75 a^3 B+135 a b^2 B+a^2 b (163 A+231 C)\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{315 a d \sqrt {\sec (c+d x)}}+\frac {2 (5 A b+9 a B) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{63 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{9 d \sec ^{\frac {7}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 4 in
optimal.
time = 7.17, size = 6410, normalized size = 14.18 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(6757\) vs.
\(2(470)=940\).
time = 0.52, size = 6758, normalized size = 14.95
method | result | size |
default | \(\text {Expression too large to display}\) | \(6758\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 1.67, size = 725, normalized size = 1.60 \begin {gather*} \frac {\sqrt {2} {\left (-225 i \, B a^{5} - 3 i \, {\left (163 \, A + 231 \, C\right )} a^{4} b - 345 i \, B a^{3} b^{2} + 3 i \, {\left (31 \, A + 7 \, C\right )} a^{2} b^{3} + 90 i \, B a b^{4} - 20 i \, A b^{5}\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) + \sqrt {2} {\left (225 i \, B a^{5} + 3 i \, {\left (163 \, A + 231 \, C\right )} a^{4} b + 345 i \, B a^{3} b^{2} - 3 i \, {\left (31 \, A + 7 \, C\right )} a^{2} b^{3} - 90 i \, B a b^{4} + 20 i \, A b^{5}\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) - 3 \, \sqrt {2} {\left (-21 i \, {\left (7 \, A + 9 \, C\right )} a^{5} - 435 i \, B a^{4} b - 3 i \, {\left (93 \, A + 161 \, C\right )} a^{3} b^{2} - 45 i \, B a^{2} b^{3} + 10 i \, A a b^{4}\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right ) - 3 \, \sqrt {2} {\left (21 i \, {\left (7 \, A + 9 \, C\right )} a^{5} + 435 i \, B a^{4} b + 3 i \, {\left (93 \, A + 161 \, C\right )} a^{3} b^{2} + 45 i \, B a^{2} b^{3} - 10 i \, A a b^{4}\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right ) + \frac {6 \, {\left (35 \, A a^{5} \cos \left (d x + c\right )^{4} + 5 \, {\left (9 \, B a^{5} + 19 \, A a^{4} b\right )} \cos \left (d x + c\right )^{3} + {\left (7 \, {\left (7 \, A + 9 \, C\right )} a^{5} + 135 \, B a^{4} b + 75 \, A a^{3} b^{2}\right )} \cos \left (d x + c\right )^{2} + {\left (75 \, B a^{5} + {\left (163 \, A + 231 \, C\right )} a^{4} b + 135 \, B a^{3} b^{2} + 5 \, A a^{2} b^{3}\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{945 \, a^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{9/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________